<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 CalenderUI();
 link_js(array('jquery.fixedheader','bootstrap-typeahead'),'asset/js/');
 ?>
<!--<div class='container'>-->
     <div class="tabbable"> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style=''>
	   <br>
            <div class="tab-pane" id="table1"></div>
            <div class="tab-pane active" id="table2">
			<?=$this->zetro_auth->allAuth($frm3,'pin_book');?>
			<?=$this->zetro_auth->allAuth($list,'pin_book');?></div></div>
       </div>
		<input type='hidden' id='row_aktif' value='<?=empty($_GET['ot'])?'n':$_GET['ot'];?>'/>
		<input type='hidden' id='rows' value='<?=base64_decode($this->session->userdata('menus'));?>'/>
    </div>
<!--</div>-->
<script language='javascript'>
$(document).ready(function(e) {
	$('div.tab-content').css('height',(screen.availHeight-275));
	$('#bln').html("<?=$bln;?>").change(function(){_show_data('1');});
	$('#tahun').html("<?=$thn;?>").change(function(){_show_data('1');});
	$('#id_cabang').html("<?=$lok2;?>").change(function(){_show_data('1');});
	$('#c_cari').click(function(){_show_data('1');});
})

function _show_data(tp)
{
	show_indicator('NewList',9);
	$.post('getpinbook',$('#frm1').serialize()+'&ot='+$('#row_aktif').val(),function(result)
	{
		$('#NewList tbody').html(result);
		(tp=='')?
		$('#NewList').fixedHeader({'width':(screen.availWidth-50),'height':(screen.availHeight-370)}):'';
	})
}
</script>
